<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<?php echo ($headHtml); ?>
<body>
<?php echo ($head_navlist); ?>
<!-- banner -->
<div class="banner">
    <div class="swiper-wrapper">
        <?php
 $_id = intval($headInfo[banner_select_id]); $where = array('aid'=> $_id, 'status' => 1); $limit = "4"; $abc_cate = M('abc')->find($_id); if ($abc_cate) { $limit = empty($limit) ? $abc_cate['num'] : $limit; $where['starttime'] = array('lt', time()); $where['endtime'] = array('gt', time()); $_abc = M('abcDetail')->where($where)->order('sort')->limit($limit)->select(); }else { $_abc = array(); } if (empty($_abc)) { $_abc = array(); } foreach($_abc as $autoindex => $abc): $abc['width'] = $abc_cate['width']; $abc['height'] = $abc_cate['height']; ?><div class="swiper-slide"><a href="javascript:void(0)"><img src="<?php echo ($abc[content]); ?>" alt="" /></a></div><?php endforeach;?>
    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
</div>
<section class="content">
    <div class="box brand_content clear">
        <div class="location">
            <a href="">当前位置</a>-<a href="/pn_<?=$headInfo[ename]?>"><?php echo ($headInfo[name]); ?></a>- <a href="/pn_<?=$catalogSelect[ename]?>"><?php echo ($catalogSelect[name]); ?></a>
        </div>
    </div>
    <div class="fullBox" style="background: url('/App/PingNa/View/default/images/company_back_04.jpg') no-repeat bottom">
        <div class="box brand_content">
            <div class="navListBox">
                <?php $i=0; ?>
                <?php
 $_typeid = $headInfo[id]; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); $_fieldflag = 0; if($_fieldflag == 0){ $_navlist = get_category(1); }else{ $_navlist = M('category')->where(['status'=>1])->order('sort asc')->select(); } if($_typeid == 0) { $_navlist = Common\Lib\Category::toLayer($_navlist); }else { $_navlist = Common\Lib\Category::toLayer($_navlist, 'child', $_typeid); } foreach($_navlist as $autoindex => $navlist): $navlist['url'] = get_url($navlist); if($i==3): ?>
                    <a href="/pn_<?=$navlist[ename]?>" class="<?=$activeCatalogId==$navlist[id]?'tab_active':''?>" style="margin-right: 0%"><p><?php echo ($navlist["name"]); ?></p></a>
                    <?php else: ?>
                    <a href="/pn_<?=$navlist[ename]?>" class="<?=$activeCatalogId==$navlist[id]?'tab_active':''?>"><p><?php echo ($navlist["name"]); ?></p></a>
                    <?php endif; ?>
                    <?php $i++; endforeach;?>
            </div>

            <header class="brand_title">
                <h1><?php echo ($catalogSelect[name]); ?></h1>
            </header>
            <section class="box index_news_container all_animate show">
                <div class="index_brand">
                    <?php $imgs = array(); ?>
                    <?php
 $_typeid = $catalogSelect[id]; $_keyword = ""; $_arcid = ""; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array('picture.status' => 0, 'picture.cid'=> array('IN',$ids)); }else { $where = array('picture.status' => 0); } if ($_keyword != '') { $where['picture.title'] = array('like','%'.$_keyword.'%'); } if (!empty($_arcid)) { $where['picture.id'] = array('IN', $_arcid); } if (2 > 0) { $where['_string'] = 'picture.flag & 2 = 2 '; } if (0 > 0) { $count = D2('ArcView','picture')->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 0, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_piclist = D2('ArcView','picture')->nofield('')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_piclist)) { $_piclist = array(); } foreach($_piclist as $autoindex => $piclist): $_jumpflag = ($piclist['flag'] & B_JUMP) == B_JUMP? true : false; $piclist['url'] = get_content_url($piclist['id'], $piclist['cid'], $piclist['ename'], $_jumpflag, $piclist['jumpurl']); if(0) $piclist['title'] = str2sub($piclist['title'], 0, 0); if(0) $piclist['description'] = str2sub($piclist['description'], 0, 0); if(isset($piclist['pictureurls'])){ $piclist['pictureurls'] = get_picture_array($piclist['pictureurls']); }; foreach($piclist[pictureurls] as $key => $data):?>
                        <?php array_push($imgs,$data[url]) ?>
                        <?php endforeach; endforeach;?>
                    <ul class="index_team_list_1">
                        <?php foreach($imgs as $key => $data):?>
                            <?php if($key<3): ?>
                                 <li class="index_team_list_1_li_<?=$key+1?>" style="background-image: url(<?=$data?>);"></li>
                            <?php endif; ?>
                        <?php endforeach; ?>
                    </ul>
                    <ul class="index_team_list_1 index_team_list_2 box">
                        <?php foreach($imgs as $key => $data):?>
                        <?php if($key>=3&&$key<8): ?>
                        <li class="<?=$key%2==0?'index_team_list_2_li':''?>" style="background-image: url(<?=$data?>);"></li>
                        <?php endif; ?>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </section>

        </div>
    </div>
</section>
<?php echo ($footHtml); ?>
<script>
    swiperBanner();
</script>
</body>
</html>